package com.project2.service;

import com.project2.bean.CommonData;
import com.project2.bean.PageBo;
import com.project2.bean.bo.PermissionBO;
import com.project2.bean.po.MarketRole;
import com.project2.bean.vo.PermissionListVO;
import com.project2.bean.vo.RoleOptionsVo;

/**
 * @author : bunnyupup
 * @description :
 * @date : Created in 2022/8/12 19:29
 */
public interface AdminRoleService {

    CommonData<RoleOptionsVo> options();

    CommonData<MarketRole> list(String name, PageBo bo);

    MarketRole create(MarketRole marketRole);

    int update(MarketRole marketRole);

    int delete(MarketRole marketRole);

    PermissionListVO getPermissions(String roleId);

    int updatePermissions(PermissionBO bo);
}
